<template>
  <div id="test1">
    <div class="header">
      <my-header :backFlag="backFlag" headerText="主页子组件"></my-header>
    </div>
    <div class="content">
      <h1>主页子组件</h1>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      index:1,
      backFlag:true
    }
  }
}
</script>
<style lang="stylus" scoped>
#test1
  position: fixed
  top: 0
  right: 0
  bottom: 0
  left: 0
  background: #cccccc
  display: flex
  flex-direction: column
  .header
    min-height: 50px
    background: red
    position: relative
  .content
    flex-grow: 1
    background: #f7f7f7
    text-align: center
    line-height 150px
</style>
